class Renderer
  def render(text_object)
    @text, @size, @color = text_object.text, text_object.size_inches, text_object.color
  end
end

class TextObject
  attr_reader :text, :size_inches, :color
  
  def initialize(text, size_inches, color)
    @text, @size_inches, @color = text, size_inches, color
  end
end

class BritishTextObject
  attr_reader :string, :size_mm, :colour
  
  def initialize(string, size_mm, colour)
    @string, @size_mm, @colour = string, size_mm, colour
  end
  
  def text
    @string
  end
  
  def size_inches
    @size_mm / 25.4
  end
  
  def color
    @colour
  end
end
